import request from "../api/config";
import api from "../api/api";

interface ILoginApi{
  username:string;
  userpwd:string;
}

//登录
export const userLogin = (data: ILoginApi) => {
  return request({
    method: "post",
    url: api.userinfos.login,
    data,
  });
};
//注册
export const userRegister=(data:ILoginApi)=>{
  return request({
    method:"post",
    url:api.userinfos.register,
    data
  })
}